<%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
  <html>
  <head>
  <base href="<%=basePath%>%>"/>
  <meta charset="utf-8">
  +<title>layuiAdmin 角色管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="static/layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="static/layuiadmin/style/admin.css" media="all">
  </head>
  <body>

  <div class="layui-fluid">
    <div class="layui-card">
    <div class="layui-form layui-card-header layuiadmin-card-header-auto">
      <div class="layui-form-item">
        <div class="layui-inline">
  角色筛选
  </div>
        <div class="layui-inline">
  <select name="rolename" lay-filter="LAY-user-adminrole-type">
  <option value="-1">全部角色</option>
  <option value="0">管理员</option>
  <option value="1">超级管理员</option>
  <option value="2">纠错员</option>
  <option value="3">采购员</option>
  <option value="4">推销员</option>
  <option value="5">运营人员</option>
  <option value="6">编辑</option>
  </select>
  </div>
  </div>
  </div>
        <div class="layui-card-body">
            <div style="padding-bottom: 10px;">
            <button class="layui-btn layuiadmin-btn-role" data-type="batchdel">删除</button>
            <button class="layui-btn layuiadmin-btn-role" data-type="add">添加</button>
            </div>

              <%--列表主体--%>
            <table id="LAY-user-back-role" lay-filter="LAY-user-back-role">


  </table>
            <%--弹出修改的信息框--%>
            <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list"
    style="display:none;padding: 20px 30px 0 0;">

                  <div class="layui-form-item">
        <label class="layui-form-label">角色名</label>
        <div class="layui-input-inline">
            <input id="menu_name" type="text" name="roleName" disabled="disabled" lay-verify="required" autocomplete="off"
        class="layui-input">
        </div>
    </div>

                  <div class="layui-form-item">
        <label class="layui-form-label">角色ID</label>
        <div class="layui-input-inline">
            <input type="text" id="menu_id" disabled="disabled" name="roleId" lay-verify="required" autocomplete="off"
    class="layui-input">
        </div>
    </div>

                 <div class="layui-form-item">
    <label class="layui-form-label">创建时间</label>
    <div class="layui-input-inline">
    <input type="text" disabled="disabled" id="roleCreateDt" name="roleCreateDt"  autocomplete="off" class="layui-input">
    </div>
    </div>

                  <div class="layui-form-item">
    <label class="layui-form-label">角色描述</label>
    <div class="layui-input-inline">
    <textarea id="menu_disc" name="roleDiscription"  style="width: 150px; height: 20px;"
    autocomplete="off" class="layui-textarea"></textarea>
    </div>
    </div>


                  <div class="layui-form-item">
    <label class="layui-form-label">角色状态</label>
    <div class="layui-input-inline">
    <input id="roleStatus" type="checkbox" lay-verify="required" lay-filter="status" name="roleStatus"
    lay-skin="switch" lay-text="可用|禁用">
    </div>
    </div>


                <div class="layui-input-block">
    <div class="layui-footer" style="left: 0;">
    <div class="layui-input-inline">
    <button id="add-entity-info-btn" class="layui-btn layui-btn-radius layui-btn-normal" lay-submit="" lay-filter="updata-entity-info-btn">提交修改</button>
    </div>
    <div class="layui-input-inline" style="margin-left:50px">
    <button id="add-entity-info-btn-reset"  type="reset" class="layui-btn layui-btn-radius layui-btn-normal" lay-filter="cancel-entity-info-btn">清空输入</button>
    </div>
    </div>
    </div>
    </div>



            <script type="text/html" id="buttonTpl">
            {{#  if(d.roleStatus == true){ }}
            <button class="layui-btn layui-btn-xs">角色可用</button>
            {{#  } else { }}
            <button class="layui-btn layui-btn-primary layui-btn-xs">角色禁用</button>
            {{#  } }}
            </script>
            <script type="text/html" id="table-useradmin-admin">
            <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>编辑</a>
            <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon layui-icon-delete"></i>删除</a>
            </script>
  </div>
  </div>
  </div>

  <script src="static/user/js/jquery.min.js" charset="UTF-8"></script>
  <script src="static/layuiadmin/layui/layui.js" charset="UTF-8"></script>
  <script src="static/user/sysRole.js" charset="UTF-8"></script>
  </body>
  </html>

